package com.hrbxlh.virtualization.param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author cheer
 */
public class ImageCreateParam {

    /**
     * 镜像名称
     */
    @NotBlank(message = "镜像名称不能为空")
    @Size(max = 20, message = "镜像名称不能超过20个字符")
    private String imageName;

    /**
     * 容器Id
     */
    @NotNull(message = "虚拟机Id不能为空")
    private Long containerId;

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public Long getContainerId() {
        return containerId;
    }

    public void setContainerId(Long containerId) {
        this.containerId = containerId;
    }

}
